package com.example.testcontainer;

import com.example.testcontainer.dto.CustomInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "customFeign",url = "${remote.custom.url}")
public interface ExternalCustomClient {

    @GetMapping("custom/{id}")
    public CustomInfo getCustom(@PathVariable("id") String id);
}
